package server;

import database.dao.WebcamDAO;
import database.manager.DatabaseManager;

class Server {
	public static void main( String args[] ) {
		// connecting to the database
		DatabaseManager.getInstance();
		WebcamDAO wbc = new WebcamDAO( DatabaseManager.getInstance() );

		IPCConnection ipcc = new IPCConnection();
		Thread ipcThread = new Thread( ipcc );
		ipcThread.start();

		CamConnection camc = new CamConnection( wbc );
		Thread camThread = new Thread( camc );
		camThread.start();

		FileManager filem = new FileManager( wbc );
		Thread fileThread = new Thread( filem );
		fileThread.start();
	}
}